import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
     {
      path: '/',
      redirect: '/Pages/Home/index',
      name: '这个是一站式服务'
      },
    //#region 首页
    {
      path: '/Pages',
      component: ()=> import('@/views/PagesView'),
      children:[
        {
          path:'Home/index',
          name: 'Home/index',
          component: ()=> import('@/components/Home/index'),
        },
        //#region 登录注册
        {
          path: '/User/Login',
          name: '/User/Login',
          component: ()=> import('@/components/User/Login')
        },
        {
          //个人注册
          path: '/User/PersonalRegistration',
          name: '/User/PersonalRegistration',
          component: ()=> import('@/components/User/PersonalRegistration')

        },
        {//企业注册
          path: '/User/EnterpriseRegistration',
          name: '/User/EnterpriseRegistration',
          component: ()=> import('@/components/User/EnterpriseRegistration')
        },
        {//重置密码
          path: '/User/RestePassword',
          name: '/User/RestePassword',
          component: ()=> import('@/components/User/RestePassword')
        },
        //#endregion
        //评价
        {
          path:'Home/Evaluate',
          name: 'Home/Evaluate',
          component: ()=> import('@/components/Home/Evaluate'),
        },
        //需求
        {
          path:'Home/Needs',
          name: 'Home/Needs',
          component: ()=> import('@/components/Home/Needs'),
        },
        //关于我们
        {
          path:'Home/AboutUs',
          name: 'Home/AboutUs',
          component: ()=> import('@/components/Home/AboutUs'),
        },
        //联系我们
        {
          path:'Home/ContactUs',
          name: 'Home/ContactUs',
          component: ()=> import('@/components/Home/ContactUs'),
        },
        //公告详情
        {
          path:'Home/Notice',
          name: 'Home/Notice',
          component: ()=> import('@/components/Home/Notice'),
        },
        //#endregion
        //#region 企业活动
        {
          path:'CorporateCulture/Home',
          name: 'CorporateCulture/Home',
          component: ()=> import('@/components/CorporateCulture/Home'),
        },
        {
          path:'CorporateCulture/UnionActive',
          name: 'CorporateCulture/UnionActive',
          component: ()=> import('@/components/CorporateCulture/UnionActive'),
        },
        //#endregion
        //#region 企业名录
        {
          path:'CompanyList/Home',
          redirect: 'CompanyList/Home/Map',
          name: 'CompanyList_Home',
          component: ()=> import('@/components/CompanyList/Home'),
          children:[
            {
              path:'Map',
              name: 'CompanyList_Map',
              component: ()=> import('@/components/CompanyList/Map'),
            },
            {
              path:'Industry',
              name: 'CompanyList_Industry',
              component: ()=> import('@/components/CompanyList/Industry'),
            },
            {
              path:'Zone',
              name: 'CompanyList_Zone',
              component: ()=> import('@/components/CompanyList/Zone'),
            }
          ]
        },
        {
          path:'CompanyList/CompanyDetail',
          name: 'CompanyList_CompanyDetail',
          component: ()=> import('@/components/CompanyList/CompanyDetail'),
        },
        //#endregion
        //#region 个人中心
        {
          path:'PersonalCenter',
          name: 'PersonalCenter',
          component: ()=> import('@/components/PersonalCenter/Index'),
          children:[
            {
              path:'AccountSettings',
              name: 'AccountSettings',
              component: ()=> import('@/components/PersonalCenter/AccountSettings'),
            },
            {
              path:'MyActive',
              name: 'MyActive',
              component: ()=> import('@/components/PersonalCenter/MyActive'),
            },
            {
              path:'MyOrder',
              name: 'MyOrder',
              component: ()=> import('@/components/PersonalCenter/MyOrder'),
            },
            {
              path:'MyDemand',
              name: 'MyDemand',
              component: ()=> import('@/components/PersonalCenter/MyDemand'),
            },
            {
              path:'MyEvaluation',
              name: 'MyEvaluation',
              component: ()=> import('@/components/PersonalCenter/MyEvaluation'),
            },
          ]
        },

        //#region 园区配套
        {
          path:'ParkMatch/Home',
          name: 'ParkMatch/Home',
          component: ()=> import('@/components/ParkMatch/Home'),
        },
        {
          path:'ParkMatch/Search',
          name: 'ParkMatch/Search',
          component: ()=> import('@/components/ParkMatch/Search'),
        },
        {
          path:'ParkMatch/Detail',
          name: 'ParkMatch/Detail',
          component: ()=> import('@/components/ParkMatch/Detail'),
        },

        //#endregion
      ]
    },
    //#region 惠企政策
    {
      path: '/BenefitPolicy',
      name: 'BenefitPolicy',
      component: ()=> import('@/components/BenefitPolicy/TemplateViews'),
      children:[
        {
          path:'Home',
          name: 'Home',
          component: ()=> import('@/components/BenefitPolicy/Home'),
        },
        {
          path:'PolicyService',
          name: 'PolicySer',
          component: ()=> import('@/components/BenefitPolicy/PolicyService'),
        },
        {
          path:'ActiveService',
          name: 'ActiveService',
          component: ()=> import('@/components/BenefitPolicy/ActiveService/ActiveService'),
        },
        {
          path:'ActiveServiceDetail',
          name: 'ActiveServiceDetail',
          component: ()=> import('@/components/BenefitPolicy/ActiveService/ActiveServiceDetail'),
        },
        {
          path:'ActivityInformation',
          name: 'ActivityInformation',
          component: ()=> import('@/components/BenefitPolicy/ActiveService/ActivityInformation'),
        },
        {
          path:'ActiveEnrollment',
          name: 'ActiveEnrollment',
          component: ()=> import('@/components/BenefitPolicy/ActiveService/ActiveEnrollment'),
        },
        {
          path: 'PersonnelService',
          redirect: 'PersonnelService/Home',
          name: 'PersonnelService',
          component: () => import('@/components/BenefitPolicy/PersonnelService/PersonnelService'),
          children:[
            {
              path: 'Home',
              name: 'PersonnelServiceIndex',
              component: () => import('@/components/BenefitPolicy/PersonnelService/Home'),
            },
            {
              path: 'PersonnelServiceDetail',
              name: 'PersonnelServiceDetail',
              component: () => import('@/components/BenefitPolicy/PersonnelService/PersonnelServiceDetail'),
            },
          ]
        },
        {
          path:'Housekeeper/index',
          name: 'Housekeeper/index',
          component: ()=> import('@/components/BenefitPolicy/Housekeeper/index'),


        },
      ]
    },
    //#endregion

    //#region 金融云
    {
      path: '/FinanceCloud',
      name: '/FinanceCloud',
      component: ()=> import('@/components/FinanceCloud/TemplateViews'),
      children:[
        {
          path:'index',
          name: 'index',
          component: ()=> import('@/components/FinanceCloud/index'),
        },
        {
          path:'HotPolity',
          name: 'HotPolity',
          component: ()=> import('@/components/FinanceCloud/HotPolity'),
        },
        {
          path:'HotPolityDetail',
          name: 'HotPolityDetail',
          component: ()=> import('@/components/FinanceCloud/HotPolityDetail'),
        },
        {
          path:'DownloadCenter',
          name: 'DownloadCenter',
          component: ()=> import('@/components/FinanceCloud/DownloadCenter'),
        },
        {
          path:'FinanceData',
          name: 'FinanceData',
          component: ()=> import('@/components/FinanceCloud/FinanceData'),
        },
        {
          path:'FinancialInstitutions',
          name: 'FinancialInstitutions',
          component: ()=> import('@/components/FinanceCloud/FinancialInstitutions'),
        },
        {
          path:'FinancialProducts',
          name: 'FinancialProducts',
          component: ()=> import('@/components/FinanceCloud/FinancialProducts'),
        },
        {
          path:'FinancialProductsDetail',
          name: 'FinancialProductsDetail',
          component: ()=> import('@/components/FinanceCloud/FinancialProductsDetail'),
        },

      ]
    },
    //#endregion

    //#region 投融资中心
    {
      path: '/InvestmentCenter',
      name: 'InvestmentCenter',
      component: ()=> import('@/components/InvestmentCenter/TemplateViews'),
      children:[
        {
          path:'Home',
          name: 'Home',
          component: ()=> import('@/components/InvestmentCenter/Home'),
        },
        {
          path:'StartupProject',
          name: 'StartupProject',
          component: ()=> import('@/components/InvestmentCenter/StartupProject'),
        },
        {
          path:'LookingProject',
          name: 'LookingProject',
          component: ()=> import('@/components/InvestmentCenter/LookingProject'),
        },
        {
          path:'LookingProjectDetail',
          name: 'LookingProjectDetail',
          component: ()=> import('@/components/InvestmentCenter/LookingProjectDetail'),
        },
        {
          path:'Activity',
          name: 'Activity',
          component: ()=> import('@/components/InvestmentCenter/Activity'),
        },
        {
          path:'IndustryDocking',
          name: 'IndustryDocking',
          component: ()=> import('@/components/InvestmentCenter/IndustryDocking'),
        },
        {
          path:'InvestmentCooperation',
          name: 'InvestmentCooperation',
          component: ()=> import('@/components/InvestmentCenter/InvestmentCooperation'),
        },
        {
          path:'InvestmentCooperationDetail',
          name: 'InvestmentCooperationDetail',
          component: ()=> import('@/components/InvestmentCenter/InvestmentCooperationDetail'),
        }

      ]
    },
    //#endregion

    //#region 服务超市
    {
      path: '/ServiceSupermarket',
      name: '/ServiceSupermarket',
      component: ()=> import('@/components/ServiceSupermarket/TemplateViews'),
      children:[
        {
          path: 'Home',
          name: 'ServiceSupermarket/Home',
          component: ()=> import('@/components/ServiceSupermarket/Home')
        },
        {
          path: 'ServiceClassificationDetail',
          name: 'ServiceClassificationDetail',
          component: ()=> import('@/components/ServiceSupermarket/ServiceClassificationDetail')
        },
        {
          path: 'GatheringCenter',
          name: 'GatheringCenter',
          component: ()=> import('@/components/ServiceSupermarket/GatheringCenter')
        },
        {
          path: 'ServiceOrganization',
          name: 'ServiceOrganization',
          component: ()=> import('@/components/ServiceSupermarket/ServiceOrganization')
        },
        {
          path: 'ServiceConsultant',
          name: 'ServiceConsultant',
          component: ()=> import('@/components/ServiceSupermarket/ServiceConsultant')
        },
        {
          path: 'About',
          name: 'About',
          component: ()=> import('@/components/ServiceSupermarket/About')
        },
        {
          path: 'GoodsDetails',
          name: 'GoodsDetails',
          component: ()=> import('@/components/ServiceSupermarket/GoodsDetails')
        },
        {
          path:'CreateDemand',
          name: 'CreateDemand',
          component: ()=> import('@/components/ServiceSupermarket/CreateDemand')
        },
        {
          path:'BuyStep1',
          name: 'BuyStep1',
          component: ()=> import('@/components/ServiceSupermarket/BuyStep1')
        },
        {
          path:'SubmitSuccess',
          name: 'SubmitSuccess',
          component: ()=> import('@/components/ServiceSupermarket/SubmitSuccess')
        },
        {
          path:'BuyStep2',
          name: 'BuyStep2',
          component: ()=> import('@/components/ServiceSupermarket/BuyStep2')
        },
        {
          path:'OrderDetail',
          name: 'OrderDetail',
          component: ()=> import('@/components/ServiceSupermarket/OrderDetail')
        },
      ]
    },
    //#endregion
    //LocaPage
    {
      path:'/localPage/head',
      name:'head',
      component:()=> import('@/views/localPage/head')
    },
    {
      path:'/localPage/foot',
      name:'foot',
      component:()=> import('@/views/localPage/foot')
    },

     //notify
     {
      path:'/MessagePage/notify',
      name:'notify',
      component:()=> import('@/views/MessagePage/notify')
     },

    //errorPage
    {
      path:'/errorPage/401',
      name:'401',
      component:()=> import('@/views/errorPage/401')
    },
    //404
    {
      path:'*',
      name:'404',
      component:()=> import('@/views/errorPage/404')
    },




  ]
})
